import json
def build_add_data():
    with open('add_data/add_data.json') as f:
        data = json.load(f) # [[], [], []] ---> [(), ()]
    return data

def build_add_data_1():
    with open('add_data/add_data_1.json') as f:
        data_list = json.load(f) # [{}, {}, {}] ----> [(), ()]
        new_list = []
        for data in data_list: # data 字典
            # 字典中的值，是否都需要
            a = data.get('a')
            b = data.get('b')
            expect = data.get('expect')
            new_list.append((a, b, expect))
    return new_list

def build_add_data_2():
    with open('add_data/add_data_1.json') as f:
        data_list = json.load(f) # [{}, {}, {}] ----> [(), ()]
        new_list = []
        for data in data_list: # data 字典
            # 字典中的值，是否都需要
            new_list.append(tuple(data.values()))
    return new_list